package de.fhd.pms.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * The java bean class for {@link Kunde} objects It specifies:
 * <ul>
 * <li>the {@link Kunde} class & interfaces</li>
 * <li>get-/set-methods</li>
 * <li>constructors</li>
 * <li>other methods if needed</li>
 * </ul>
 * 
 * @author Fischer, Neetzel & Six
 */
@Entity
@Table(name = "tbl_kunde")
public class Kunde {
	@Id
	@GeneratedValue
	@Column(name = "pk_kunde")
	private Integer id;
	private Date created;
	@Column(name = "vorname")
	private String vorname;
	@Column(name = "nachname")
	private String nachname;
	@Column(name = "telefon")
	private String telefon;
	@Column(name = "strasse")
	private String strasse;
	@Column(name = "plz")
	private String plz;
	@Column(name = "ort")
	private String ort;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public String getVorname() {
		return vorname;
	}

	public void setVorname(String vorname) {
		this.vorname = vorname;
	}

	public String getNachname() {
		return nachname;
	}

	public void setNachname(String nachname) {
		this.nachname = nachname;
	}

	public String getTelefon() {
		return telefon;
	}

	public void setTelefon(String telefon) {
		this.telefon = telefon;
	}

	public String getStrasse() {
		return strasse;
	}

	public void setStrasse(String strasse) {
		this.strasse = strasse;
	}

	public String getPlz() {
		return plz;
	}

	public void setPlz(String plz) {
		this.plz = plz;
	}

	public String getOrt() {
		return ort;
	}

	public void setOrt(String ort) {
		this.ort = ort;
	}

}
